#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
script name: forms
Created on 2020/2/15 20:58 by PyCharm
@author: fujianjian
"""
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, SelectField
from wtforms.validators import DataRequired


class AddForm(FlaskForm):
    name = StringField('actress name:', validators=[DataRequired()])
    sex = SelectField("gender", choices=[(1, 'Male'), ('0', 'Female')])

    submit = SubmitField('submit')


class QueryForm(FlaskForm):
    name = StringField('name:')
    query = SubmitField('query')
